FROM python:3.7
WORKDIR /Project/demo

COPY req.txt ./
RUN pip install -r req.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

COPY . .

CMD ["gunicorn", "run:app", "-c", "gunicorn.conf.py"]
# 暴露端口
EXPOSE 5000 5001 5002
